
local yangchen = fk.CreateSkill {
  name = "lingling__yangchen",
  tags = { Skill.Limited },
}

Fk:loadTranslationTable{
  ["lingling__yangchen"] = "扬尘",
  [":lingling__yangchen"] = "限定技，出牌阶段，你可以令一名其他角色跳过下一个出牌阶段。",

  ["#lingling__yangchen"] = "扬尘：令一名其他角色跳过下一个出牌阶段！",

  ["@@lingling__yangchen"] = "扬尘",

  ["$lingling__yangchen1"] = "飞沙走石，敌军难视矣！",
  ["$lingling__yangchen2"] = "狂风骤起，此天助我也！",
}

yangchen:addEffect("active", {
  anim_type = "offensive",
  prompt = "#lingling__yangchen",
  max_game_use_time = 1,
  can_use = function(self, player)
    return self:withinTimesLimit(player, Player.HistoryGame)
  end,
  card_num = 0,
  card_filter = Util.FalseFunc,
  target_num = 1,
  target_filter = function(self, player, to_select, selected)
    return #selected == 0 and to_select ~= player
  end,
  on_use = function(self, room, use)
    local to = use.tos[1]
    room:setPlayerMark(to, "@@lingling__yangchen", 1)
  end
})
yangchen:addEffect(fk.TurnStart, {
  is_delay_effect = true,
  mute = true,
  can_trigger = function(self, event, target, player, data)
    return target == player and player:getMark("@@lingling__yangchen") ~= 0
  end,
  on_cost = Util.TrueFunc,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:setPlayerMark(player, "@@lingling__yangchen", 0)
    player:skip(Player.Play)
  end
})

return yangchen
